<template>
	<view class="main-container">
		<view class="suggestion-box">
			<view class="commit-item-box">
				<view class="title"><span class="must-icon-box">*</span>我想成为</view>
				<input class="cur-input" v-model="cooperationType" placeholder="供应商/代理商/同事" />
			</view>
			<view class="commit-item-box">
				<view class="title"><span class="must-icon-box">*</span>我的手机号码</view>
				<input class="cur-input" v-model="phone" placeholder="请填写电话号码" />
			</view>
			<view class="commit-item-box">
				<view class="title"><span class="must-icon-box">*</span>我的优势</view>
				<textarea v-model="advantage"  placeholder="资质/资源/特长/技能"
					maxlength="1000"
				></textarea>
			</view>
			<view class="commit-item-box">
				<view class="title">我的愿景</view>
				<textarea v-model="vision"  placeholder="我们一起会怎样"
					maxlength="1000"
				></textarea>
			</view>
		</view>
		<view class="submit-box">
			<button @click="commitSuggestion">提交</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cooperationType: "",
				phone: "",
				advantage: "",
				vision: ""
			}
		},
		methods: {
			commitSuggestion(){
				console.log(this.suggestionContent);
				this.$api.msg("提交成功")
				this.suggestionContent = ""
			}
		}
	}
</script>

<style lang="scss" scoped>
	.main-container {
		position: relative;
		background: #F5F5F9;
		height: 100vh;
		padding-top: 24upx;
		
		.suggestion-box{
			background-color: white;
			margin: 24upx;
			padding: 24upx;
			border-radius: 16rpx;
		}
		.commit-item-box{
			border-bottom: 1upx solid #E8E8E8;
			.title {
				font-weight: 600;
				font-size: 26rpx;
				color: #23242E;
				margin-top: 32upx;
				margin-bottom: 24upx;
				line-height: 40rpx;
				text-align: left;
				font-style: normal;
				.must-icon-box {
					color: #FF5C5C;
				}
			}
			.cur-input{
				font-size: 28rpx;
				color: #C8C9CC;
				line-height: 42rpx;
				text-align: left;
				font-style: normal;
				margin-bottom: 24upx;
			}
			textarea {
				width: 654rpx;
				padding: 24upx;
				font-weight: 400;
				font-size: 28rpx;
				color: #C8C9CC;
				line-height: 42rpx;
				text-align: left;
				background-color: #F5F5F9;
				border-radius: 16upx;
			}
		}
	}
	.submit-box{
		position: absolute;
		left: 0;
		bottom: 0;
		width: 750upx;
		height: 220upx;
		background-color: white;
		button {
			width: 702rpx;
			height: 88rpx;
			background: #3EB3F3;
			border-radius: 50rpx;
			color: white;
		}
	}
	
</style>
